# README - Replication Data for "External Threat and Nuclear Preferences: Micro-Level Insights from the Iran-Israel Confrontation"

Author: Peyman Asadzade
Foreign Policy Analysis

Repository Structure
data/: Directory containing input data files.

survey_text.xlsx: Survey responses for text and thematic analysis.

survey.xlsx: Raw survey data for statistical analysis.


figures/: Directory where output plots are saved (created automatically by the script).

Analysis.R: R script for replicating all analyses and generating figures.

replication_log.txt: Log file capturing console output to verify replication results.

README.md: This file, providing an overview and replication instructions.


## Data Files
1. **survey_text.xlsx**
   - Description: Contains survey responses used for text analysis and thematic coding.
   - Format: Excel file (.xlsx)

2. **survey.xlsx**
   - Description: Includes raw survey data used for the main statistical analysis.
   - Format: Excel file (.xlsx)


## Scripts
- **Analysis.R**
  - Description: R script containing all the code required to replicate the analysis results presented in the paper. This script processes the provided datasets and performs statistical analysis.
  - Usage: Run this script in R to reproduce the analysis. Ensure that the working directory is set to the folder containing all the data files and scripts.


Notes

File Paths: The analysis.R script uses relative paths (e.g., data/survey_text.xlsx). Ensure data files are in the data/ subdirectory.

Replication Log: replication_log.txt captures all console outputs to demonstrate result reproducibility. Graphical outputs are saved as PNG files in figures/.

Figure Output: The script creates a figures/ directory if it does not exist and saves all plots there. Check this directory for visualization outputs.